package com.zhentao.enums.admin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色菜单中间表
 * @TableName ad_role_menu
 */
@TableName(value ="ad_role_menu")
@Data
public class AdRoleMenu implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色id
     */
    @TableField(value = "rid")
    private Integer rid;

    /**
     * 菜单id
     */
    @TableField(value = "mid")
    private Integer mid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
